package food;

import org.apache.hadoop.io.WritableComparator;

public class Group extends WritableComparator {
    @Override
    public int compare(Object a, Object b) {
        food f1 = (food)a;
        food f2 = (food)b;
        return f1.getFoodName().compareTo(f2.getFoodName());
    }
    public Group(){
        super(food.class,true);
    }
}
